Skip to main content

Evaluation (using Java Script)

Description

Java Script is a Process Entry in the Scripting Plugin for Process Studio Processes. JavaScript process entry to calculates a boolean expression. The result can be used to determine which step will be executed next. You can use functions, procedure calls, ANDs, ampersands, ORs, EQUALs, etc. The JavaScript process entry evaluates and returns a true or false.

Configurations

No.Field NameDescription
1Process Entry nameSpecify a unique name for the process entry, on the workspace area. A process entry can be placed on the canvas several times; and each instance of the entry must have a unique name.
2Java ScriptThe result of a JavaScript process entry is either true or false. In other words, it needs to end with a boolean expression.Here are a few possible evaluations to end your script with: lines_input > 100 or true or parent_process.getVariable("INPUT_DIRECTORY").equals("/tmp")